package org.example.myleet.p636;

import org.example.myleet.Utils.Assert;
import org.example.myleet.Utils.JsonUtils;

import java.util.List;

public class Main {
    public static void main(String[] args) {
        Solution solution = new Solution();
        Assert.isTrue("[3,4]".equals(JsonUtils.toJson(solution.exclusiveTime(2, JsonUtils.parse("[\"0:start:0\",\"1:start:2\",\"1:end:5\",\"0:end:6\"]", List.class)))));
        Assert.isTrue("[8]".equals(JsonUtils.toJson(solution.exclusiveTime(1, JsonUtils.parse("[\"0:start:0\",\"0:start:2\",\"0:end:5\",\"0:start:6\",\"0:end:6\",\"0:end:7\"]", List.class)))));
        Assert.isTrue("[7,1]".equals(JsonUtils.toJson(solution.exclusiveTime(2, JsonUtils.parse("[\"0:start:0\",\"0:start:2\",\"0:end:5\",\"1:start:6\",\"1:end:6\",\"0:end:7\"]", List.class)))));
    }
}
